import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';

class TextTest extends StatelessWidget{
  final TapGestureRecognizer _gestureRecognizer = TapGestureRecognizer(); 
  
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
           Text("Hello world",
            textAlign: TextAlign.center,
            style: TextStyle(
              fontSize: 18.0,
              height: 1.2,  
              fontFamily: "OPPOSans",
              fontWeight: FontWeight.normal,
              background: Paint()..color=Colors.yellow,
              decoration:TextDecoration.underline,
              decorationStyle: TextDecorationStyle.dashed
            ),
          ),
          Text("Hello world！I'm Jack." * 4,
            maxLines: 1,
            overflow: TextOverflow.ellipsis,
          ),
          const Text("Hello world",
            textScaler: TextScaler.linear(5.5),
          ),
          Text.rich(TextSpan(
            children:[
              TextSpan(
                text: "Home: "
              ),
              TextSpan(
                text: "https://flutterchina.club",
                style: TextStyle(
                  color: Colors.blue,
                ),
                recognizer: _gestureRecognizer
              ),
              
            ]
          ))
      ],
    );
   
  }

  
}

